package com.dave.serviceribbon.Entity

/**
 * Created by mac on 2018/5/28
 * Describes
 */
class Person constructor(val name:String,val age:Int,val gender:String){
    constructor(name:String, age:Int, gender:String,bob:String) :this(name,age,gender) {

    }
    init {
        print("姓名$name"+"年龄$age"+"性别$gender")
    }
    val nameIni=name.toUpperCase()

}

fun main(args: Array<String>) {
    var person=Person("dave",18,"男")
    print(person.nameIni)
}